package com.zg.scf.web;

import com.zg.common.core.R;
import com.zg.common.core.dao.scf.entity.ImgCategory;
import com.zg.scf.domain.req.company.CompanyAddReq;
import com.zg.scf.domain.req.img.ImgCategoryAddReq;
import com.zg.scf.service.ImgCategoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;
import java.util.List;

/**
 * DESCRIPTION
 *
 * @author zhanfeng.liang
 * @since 2025-07-25
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/img/category")
@Slf4j
@Api(tags = "画像分类")
public class ImgCategoryController {
    private final ImgCategoryService imgCategoryService;



    @PostMapping("/add")
    @ApiOperation(value = "新增")
    public R add(@RequestBody @Valid ImgCategoryAddReq addReq) {
        imgCategoryService.add(addReq);
        return R.success();
    }
}
